<template>
  <n-space vertical>
    <div class="result">
      <n-tag>{{ result }}</n-tag>
    </div>
    <div class="card">
      <n-space>
        <n-button type="success" tertiary @click="doGetUser">GetUser</n-button>
      </n-space>
    </div>
  </n-space>
</template>

<script setup lang="ts">
import {GreetService, User} from "../../../bindings/quant/backend/service";
import {ref} from "vue";
import {NButton} from "naive-ui";

const result = ref<User[]>()


const doGetUser = () => {
  GreetService.GetUserList().then((resultValue: User[]) => {
    result.value = resultValue;
  }).catch((err: Error) => {
    console.log(err);
  });
}


defineProps({})

</script>


